package com.evil.common.account.dto;

import com.evil.common.core.dto.FindByIdReqDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liyang
 * @date 2023-01-08 16:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FindByIdAndEIdReqDTO extends FindByIdReqDTO {

    /**
     * 企业ID
     */
    private Long enterpriseId;

    public FindByIdAndEIdReqDTO(Long id, Boolean filterDeleted, Boolean cache, Long enterpriseId) {
        super(id, filterDeleted, cache);
        this.enterpriseId = enterpriseId;
    }

    public static FindByIdAndEIdReqDTO filterEId(Long id, Long enterpriseId) {
        return new FindByIdAndEIdReqDTO(id, true, false, enterpriseId);
    }
}
